package com.nanhai.buddhist.college.module.study.dal.mysql.studytime;

import java.util.*;

import com.nanhai.buddhist.college.framework.common.pojo.PageResult;
import com.nanhai.buddhist.college.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.nanhai.buddhist.college.framework.mybatis.core.mapper.BaseMapperX;
import com.nanhai.buddhist.college.module.study.dal.dataobject.studytime.StudyTimeDO;
import org.apache.ibatis.annotations.Mapper;
import com.nanhai.buddhist.college.module.study.controller.admin.studytime.vo.*;

/**
 * 教学计划时间 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface StudyTimeMapper extends BaseMapperX<StudyTimeDO> {

    default PageResult<StudyTimeDO> selectPage(StudyTimePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<StudyTimeDO>()
                .orderByAsc(StudyTimeDO::getId));
    }

    default List<StudyTimeDO> selectList(StudyTimeExportReqVO reqVO) {
        return selectList(new LambdaQueryWrapperX<StudyTimeDO>()
                .orderByAsc(StudyTimeDO::getId));
    }

    default List<StudyTimeDO> selectList(StudyTimePageAllReqVO reqVO){
        return selectList(new LambdaQueryWrapperX<StudyTimeDO>()
                .orderByAsc(StudyTimeDO::getId));
    }
}
